<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@	page import="kau.dao.*"%>
<%@	page import="kau.vo.*"%>
<%@	page import="java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript">
	$(document)
			.ready(
					function() {

						$("#selectCourse")
								.change(
										function() {
											var index = $(
													"#selectCourse option:selected")
													.val();
											
											if (index != 0) {
												window
														.open(
																'/nems/courseMain.course?courseId='
																		+ index,
																'window',
																"width=1200, height=700, toolbar=no, menubar=no, scrollbars=yes, resizable=yes");

											}

										});

					});
</script>



</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0"
	marginheight="0">
	<%
		String custId = (String) session.getAttribute("custId");

		ArrayList<Registeration> registeration = RegisterationDAOImpl
				.getInstance().getAllCourseId(custId);
	%>


	<table id="__01" width="210" height="142" border="0" cellpadding="0"
		cellspacing="0">
		<tr>
			<td colspan="6"><img
				src="/nems/main/courseListImg/coursePopup_01.gif" width="210"
				height="26" alt=""></td>
		</tr>
		<tr>
			<td colspan="2" rowspan="4"><img
				src="/nems/main/courseListImg/coursePopup_02.gif" width="17"
				height="85" alt=""></td>
			<td colspan="2" width="173" height="35" bgcolor="#f2fbe7"><font
				style="font-family:" Lucida SansUnicode", "LucidaGrande", Sans-Serif;"><%=CustomerDAOImpl.getInstance().getCustomer(custId)
					.getCustName()%>님 환영합니다.</font></td>
			<td colspan="2" rowspan="2"><img
				src="/nems/main/courseListImg/coursePopup_04.gif" width="20"
				height="42" alt=""></td>
		</tr>
		<tr>
			<td colspan="2"><img
				src="/nems/main/courseListImg/coursePopup_05.gif" width="173"
				height="7" alt=""></td>
		</tr>
		<tr>
			<td rowspan="2"><img
				src="/nems/main/courseListImg/coursePopup_06.gif" width="119"
				height="43" alt=""></td>
			<td colspan="2" width="64" height="31"  bgcolor="#f2fbe7">
				<button onclick="javascript:location.replace('logout.cust')" style="height: 30"> logout</button>
			</td>
			<td rowspan="2"><img
				src="/nems/main/courseListImg/coursePopup_08.gif" width="10"
				height="43" alt=""></td>
		</tr>
		<tr>
			<td colspan="2"><img
				src="/nems/main/courseListImg/coursePopup_09.gif" width="64"
				height="12" alt=""></td>
		</tr>
		<tr>
			<td><img src="/nems/main/courseListImg/coursePopup_10.gif"
				width="3" height="30" alt=""></td>
			<td colspan="5" width="207" height="30"><select class="form-control input-small"
				id="selectCourse" style="height: 28px; width: 205px"
				name='courseSelect'><option
						value='0'>과목선택</option>
					<%
						for (int i = 0; i < registeration.size(); i++) {
							if (registeration.get(i).getIsConfirm() == 1) {

								Course course = CourseDAOImpl.getInstance().getCourse(
										registeration.get(i).getCourseId());
					%>
					<option value='<%=registeration.get(i).getCourseId()%>'>
						<%=course.getCourseName() + '-'
							+ course.getLecturer()%>
					</option>
					<%
						}
						}
					%></select></td>
		</tr>
		<tr>
			<td><img
				src="/nems/main/courseListImg/&#xc2a4;&#xd398;&#xc774;&#xc11c;.gif"
				width="3" height="1" alt=""></td>
			<td><img
				src="/nems/main/courseListImg/&#xc2a4;&#xd398;&#xc774;&#xc11c;.gif"
				width="14" height="1" alt=""></td>
			<td><img
				src="/nems/main/courseListImg/&#xc2a4;&#xd398;&#xc774;&#xc11c;.gif"
				width="119" height="1" alt=""></td>
			<td><img
				src="/nems/main/courseListImg/&#xc2a4;&#xd398;&#xc774;&#xc11c;.gif"
				width="54" height="1" alt=""></td>
			<td><img
				src="/nems/main/courseListImg/&#xc2a4;&#xd398;&#xc774;&#xc11c;.gif"
				width="10" height="1" alt=""></td>
			<td><img
				src="/nems/main/courseListImg/&#xc2a4;&#xd398;&#xc774;&#xc11c;.gif"
				width="10" height="1" alt=""></td>
		</tr>
	</table>

















</body>
</html>